*{
    margin: 0;
    padding: 0;
}
body{
    background-color: #000;
}
@keyframes space-change{
    0%{
        opacity: .3;
    }
    25%{
        opacity: 1;
    }
    50%{
        opacity: .3;
    }
    75%{
        opacity: .1;
    }
    100%{
        opacity: .3;
    }
}
@keyframes sunrise{
    0%{
        opacity: 0;
    }
    10%{
        opacity: 1;
        transform: scale(.7,.7 ) translateX(0) translateY(0)
    }
    30%{
        opacity: 1;
        transform: scale(.5,.5 ) translateX(0) translateY(-500px)
    }
    50%{
        opacity: 0;
        transform: scale(.7,.7 ) translateX(400px) translateY(0px)
    }
    100%{
        opacity: 0%;
    }
}
@keyframes moonrise{
    0%{
        opacity: 0;
        transform: translateY(0);
    }
    30%{
        opacity: 0;
        transform: translateY(0);
    }
    50%{
        opacity: 0;
    }
    70%{
        transform: translateY(-250px);
        opacity: 1;
    }
    80%{
        transform: translateY(-250px);
        opacity: 1; 
    }
    90%{
        opacity: 0;
    }
    100%{
        transform: translateY(0);
        opacity: 0;
    }
}
.space{
    height: 500px;
    background-image: linear-gradient(to bottom,rgba(0,130,255,1),rgba(255,255,255,1));
    animation: space-change 10s cubic-bezier(.5,0,.5,1) infinite;
}
.sun{
    width: 50px;
    height: 50px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0px 0px 30px 30px #fff,
                0px 0px 100px 75px #ff0;
    position: absolute;
    left: calc(50% - 25px);
    top: calc(50% - 25px);
    transform: scale(.5,.5 );
    animation: sunrise 10s infinite;
}
.moon{
    width: 100px;
    height: 100px;
    position: absolute;
    left: calc(50% + 400px);
    top: calc(50% - 50px);
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0px 0px 8px #fff,inset 0px 0px 8px #000;
    animation: moonrise 10s cubic-bezier(0,0,.5,.5) infinite;
}
.moon::after{
    position: absolute;
    content: "";
    width: 80px;
    height: 80px;
    background-color: rgb(26, 14, 14);
    border-radius: 50%;
    left: -8px;
    top: -8px;
}
